using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;

namespace Yozeev.BusinessLogic
{
    /// <summary>
    /// 景区
    /// </summary>
    public class ScenicSpot : ByBranchEntity<Guid>
    {
        /// <summary>
        /// 景区名称
        /// </summary>
        [Required(ErrorMessage = "景区名称不能为空")]
        [StringLength(100)]
        public string ScenicSpotName { get; set; }
        /// <summary>
        /// 上级景区标识
        /// </summary>
        [StringLength(100)]
        public Guid? ParentId { get; set; }
        [ForeignKey("ParentId")]
        public virtual ScenicSpot Parent { get; set; }
        /// <summary>
        /// 景区说明
        /// </summary>
        [Required(ErrorMessage = "景区说明不能为空")]
        [StringLength(100)]
        public string ScenicSpotInfo { get; set; }
    }
}
